package com.dianhun.es.ex;


import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author cyt
 * @create 2020-08-26 11:22
 */
@AllArgsConstructor
@Data
public class GlobalEx extends RuntimeException {
    private Integer code;
    private String msg;

    public GlobalEx(String message, Integer code, String msg) {
        super(message);
        this.code = code;
        this.msg = msg;
    }
}
